/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package delta.cart.bean;

import entity.Product;
import java.util.HashMap;
import javax.ejb.Local;

/**
 *
 * @author Kate
 */
@Local
public interface CartLocal {

    public void addProduct(Product product, int quantity) throws InvalidQuantityException,InvalidPriceException ;

    public int getCount();

    public float getTotalPrice();

    public HashMap<Product, Integer> getProductList();

    public void remove(Product product);

    public void removeAll();

    public void setQuantity(Product product, int quantity) throws InvalidQuantityException,
                                                                  InvalidPriceException;
}
